<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<div th:replace="fragment/header::head"></div>

<body>
<div th:replace="fragment/sidebar::side"></div>

<div class="card-body">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th>序号</th>
            <th>角色名称</th>
            <th>角色数量</th>
            <th>创建时间</th>
            <th>角色描述</th>
            <th>角色权限</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="role , rowInfo : ${list}">
            <td class="table-info" th:text="${rowInfo.count}"> 1 </td>
            <td class="table-warning" th:text="${role.getRolename()}"> Herman Beck </td>
            <td class="table-danger" th:text="${role.getRolecount()}"> Photoshop </td>
            <td class="table-success" th:text="${role.getCreatetime()}"> $ 77.99 </td>
            <td class="table-primary" th:text="${role.getRoledesc()}"> May 15, 2015 </td>
            <td class="table-primary" th:text="${role.getPower()}"> May 15, 2015 </td>
            <td class="table-info">
                <a th:href="@{/roleManage/del(roleid=${role.getRoleid()},current=${#request.getParameter('current')},size=10)}">删除</a>
                <a th:href="@{/roleManage/update(roleid=${role.getRoleid()},current=${#request.getParameter('current')},size=10)}">修改</a>
            </td>
        </tr>
        </tbody>
    </table>
    <a th:href="@{/roleManage/roleManage(current=1,size=10)}">首页</a>
    <a th:href="@{/roleManage/roleManage(current=${i},size=10)}" th:each="i : ${#numbers.sequence(1,pagesCount)}"><span th:text="${i}" style="border: 1px solid #e3e3e3;height: 16px;width: 16px;text-align: center;vertical-align: middle;padding-left: 5px;padding-right: 5px;margin-left: 10px">1</span></a>
    <a th:href="@{/roleManage/roleManage(current=${pagesCount},size=10)}">尾页</a>
</div>

<div th:replace="fragment/footer::foot"></div>

</body>
